package com.mingqi.enetconnected.primary.mytask.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * @author yaxi
 * @date 2018/9/13
 */
public class MultipleEntity<T> implements MultiItemEntity {

    private final int mType;
    private final String mContent;
    private List<T> mDatas;

    public MultipleEntity(int itemType, String content, List<T> datas) {
        mType = itemType;
        mContent = content;
        this.mDatas = datas;
    }

    public MultipleEntity(int type, String content) {
        mType = type;
        mContent = content;
    }

    @Override
    public int getItemType() {
        return mType;
    }

    public String getContent() {
        return mContent;
    }

    public List<T> getData() {
        return mDatas;
    }

    public enum ServiceContentEnum{
        /**
         * 服务项目,
         */
        SERVICE_ITEM,
        /**
         * 耗材信息
         */
        GOODS_INFO,
        /**
         * 压力测试
         */
        PRESSURE_TEST
    }


    public enum CompletedInfoEnum{
        /**
         * 完工说明
         */
        COMPLETED_INTRODUCTION,
        /**
         * 服务项
         */
        SERVICE_ITEM
    }
}
